﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ShopCalculatorControl.ascx.cs" Inherits="CSE445HW5.UserProtected.ShopCalculator" %>

<asp:ListBox ID="itemList" runat="server" Width="400" Height="200" AutoPostBack="true"></asp:ListBox>
<asp:Table ID="compTbl" runat="server" CellPadding="10">
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="itemLbl" runat="server" Text="Item Name:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="itemBox" runat="server" Width="400"></asp:TextBox>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="priceLbl" runat="server" Text="Item Price: $"></asp:Label>
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="priceBox" runat="server" Width="100"></asp:TextBox>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="quantLbl" runat="server" Text="Quantity:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="quantBox" runat="server" Width="100"></asp:TextBox>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>
<asp:Table ID="btnTbl" runat="server" CellPadding="10">
    <asp:TableRow>
        <asp:TableCell>
            <asp:Button ID="addBtn" runat="server" Text="Add Item" OnClick="add_Button_Clicked" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Button ID="removeBtn" runat="server" Text="Remove Item" OnClick="remove_Button_Clicked" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Button ID="clearBtn" runat="server" Text="Clear All" OnClick="clear_Button_Clicked" />
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>
<asp:Table ID="zipTable" runat="server" CellPadding="10">
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="zipLbl" runat="server" Text="Zipcode:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="zipBox" runat="server" Width="100"></asp:TextBox>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Button ID="confBtn" runat="server" Text="Confirm" OnClick="confirm_Button_Click" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="stateLbl" runat="server" Text="State: N/A"></asp:Label>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>
<asp:Table ID="outTable" runat="server" CellPadding="5">
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="subtotLbl" runat="server" Text="Subtotal:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell HorizontalAlign="Right">
            <asp:Label ID="subtotLblOut" runat="server" Text="$0.00"></asp:Label>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="taxLbl" runat="server" Text="Tax Rate:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell HorizontalAlign="Right">
            <asp:Label ID="taxLblOut" runat="server" Text="0.0%"></asp:Label>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="taxAmtLbl" runat="server" Text="Tax Amount:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell HorizontalAlign="Right">
            <asp:Label ID="taxAmtLblOut" runat="server" Text="$0.00"></asp:Label>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="totalLbl" runat="server" Text="Total:"></asp:Label>
        </asp:TableCell>
        <asp:TableCell HorizontalAlign="Right">
            <asp:Label ID="totalLblOut" runat="server" Text="$0.00"></asp:Label>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>